package com.room.search.service.dto;

import com.room.search.domain.enumeration.RoomRentMethodEnum;

import javax.validation.constraints.NotNull;

/**
 * By   : ghd.bright
 * Time : 2022/3/29
 * Description:
 */
public class TypeAndLocationDTO {

    private RoomRentMethodEnum rentMethod;

    private String type;

    @NotNull
    private String province;

    @NotNull
    private String city;


    public RoomRentMethodEnum getRentMethod() {
        return rentMethod;
    }

    public TypeAndLocationDTO setRentMethod(String rentMethod) {
        this.rentMethod = RoomRentMethodEnum.valueOf(rentMethod);
        return this;
    }

    public String getType() {
        return type;
    }

    public TypeAndLocationDTO setType(String type) {
        this.type = type;
        return this;
    }

    public String getProvince() {
        return province;
    }

    public TypeAndLocationDTO setProvince(String province) {
        this.province = province;
        return this;
    }

    public String getCity() {
        return city;
    }

    public TypeAndLocationDTO setCity(String city) {
        this.city = city;
        return this;
    }
}
